package vip.xiaonuo.sys.modular.sensor;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Controller
 */
@Controller
public class SensorInfoController {

    @Resource
    private SensorInfoServer sensorInfoServer;

    @GetMapping("/getFramInfo")
    public String getFramInfo(DeviceInfo deviceInfo) {
        sensorInfoServer.getFramInfo(deviceInfo);
        return "success";
    }

    @GetMapping("/getMechanicalCollector")
    public String getMechanicalCollector(DeviceInfo deviceInfo) {
        sensorInfoServer.getMechanicalCollector(deviceInfo);
        return "success";
    }

}
